﻿<phone:PhoneApplicationPage xmlns:my="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"  
    x:Class="CivilleWP7.LocalMapPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">
    <Grid x:Name="LayoutRoot" Background="Transparent">
        
        <Grid x:Name="ContentPanel">
            <my:Map VerticalAlignment="Stretch" Name="LocalMap" CredentialsProvider="AsRwIhEEnjkZ4AjPHctyFpERUQxqSNItZqt1k6GBuz8HH0IUmLjhtB4BHM5wmYPB">
                <my:MapLayer Name="PushPinLayer" />
            </my:Map>            
        </Grid>
        <Grid x:Name="TaskPopUpGrid">
            <Grid.RowDefinitions>
                <RowDefinition Height="15*" />
                <RowDefinition Height="70*" />
                <RowDefinition Height="15*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="10*" />
                <ColumnDefinition Width="80*" />
                <ColumnDefinition Width="10*" />
            </Grid.ColumnDefinitions>
            <Border Grid.Row="1" Grid.Column="1">
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.3,1" MappingMode="RelativeToBoundingBox" StartPoint="0.7,0">
                        <GradientStop Color="{StaticResource PhoneBackgroundColor}"/>
                        <GradientStop Color="Transparent" Offset="20"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Grid Name="TaskGrid">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="15*" />
                        <RowDefinition Height="55*" />
                        <RowDefinition Height="15*" />
                        <RowDefinition Height="15*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="50*" />
                        <ColumnDefinition Width="35*" />
                        <ColumnDefinition Width="15*" />
                    </Grid.ColumnDefinitions>
                    <TextBlock x:Name="TaskNameTextBlock" Grid.Row="0" Grid.ColumnSpan="2" TextWrapping="Wrap" Text="TextBlock" Style="{StaticResource PhoneTextLargeStyle}" Foreground="{StaticResource PhoneAccentBrush}"/>
                    <TextBlock x:Name="TaskDescriptionTextBlock" Grid.Row="1" Grid.ColumnSpan="3" TextWrapping="Wrap" Text="Description" Style="{StaticResource PhoneTextNormalStyle}" />
                    <TextBlock x:Name="TaskPointsTextBlock" Grid.Row="2" Grid.ColumnSpan="3" TextWrapping="Wrap" Text="Points" Style="{StaticResource PhoneTextNormalStyle}"/>
                    <Button x:Name="GoToTaskButton" Content="View More" Grid.Row="3" Grid.Column="0"/>
                    <Button x:Name="VerifyTaskButton" Content="Verify" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2"/>
                    <TextBlock x:Name="TaskCloseButton" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" Grid.Row="0" Grid.Column="2" Text="x" FontWeight="Bold" FontSize="36" Tap="TaskCloseButton_Tap" />

                </Grid>
            </Border>
        </Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
